﻿using System;
using MapCenterSystem.DefineType;

namespace MapCenterSystem.DataInfo
{
    public class PlaceInfo
    {
        long id;
        PlaceTypeInfo type;
        string fullname;
        string address;
        string contact;
        Coordinate location;
        string info;
        string picture;
        string website;
        string phone;


        public PlaceTypeInfo Type
        {
            get { return type; }
            set { type = value; }
        }

        public string FullName
        {
            get { return fullname; }
            set { fullname = value; }
        }

        public string Address
        {
            get { return address; }
            set { address = value; }
        }

        public string Contact
        {
            get { return contact; }
            set { contact = value; }
        }

        public Coordinate Location
        {
            get { return location; }
            set { location = value; }
        }
        
        public string Info
        {
            get { return info; }
            set { info = value; }
        }
        

        public string Picture
        {
            get { return picture; }
            set { picture = value; }
        }
        

        public string Website
        {
            get { return website; }
            set { website = value; }
        }
        
        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }

        public Int64 ID
        {
            get { return id; }
            set { id = value; }
        }

        public PlaceInfo()
        {
        }

        public PlaceInfo(long id, PlaceTypeInfo type, string fullName, string address, string phone, string website, Coordinate location, string info, string picture)
        {
            ID = id;
            Type = type;
            FullName = fullName;
            Address = address;
            Contact = "";
            Location = location;
            Info = info;
            Picture = picture;
            Phone = phone;
            Website = website;
        }

        public PlaceInfo(PlaceTypeInfo type, string fullName, string address, string phone, string website, Coordinate location, string info)
        {
            ID = -1;
            Type = type;
            FullName = fullName;
            Address = address;
            Contact = "";
            Phone = phone;
            Website = website;
            Location = location;
            Info = info;
            Picture = picture;
        }
    }
}
